package com.cap.bts.crmdp.dealer.masterdata.domain;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cap.bts.framework.common.domain.BaseDomain;

@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name="ti_mars_data_conversion_member_result")
@AttributeOverrides({
	@AttributeOverride(name="createDate", column=@Column(name="CREATE_DATE", nullable = false)),
	@AttributeOverride(name="createBy", column=@Column(name="CREATE_BY")),
    @AttributeOverride(name="lastUpdateBy", column=@Column(name="LAST_UPDATE_BY")),
    @AttributeOverride(name="lastUpdateDate", column=@Column(name="LAST_UPDATE_DATE"))
})
public class MarsDataConversionMemberResult extends BaseDomain implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private Long num;
	private Long batchId;
	private String pcode;
	private String memberCode;
	private String memberName;
	private String mobile;
	private String carPlate;
	private String storeCode;
	private String marsCustomerCode;
	private String marsVehicleCode;
	private String marsCustomerName;
	private String marsPhoneNumber;
	private String status;
	private String errorMessage;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="line_num")
	public Long getNum() {
		return num;
	}
	public void setNum(Long num) {
		this.num = num;
	}
	@Column(name="batch_id")
	public Long getBatchId() {
		return batchId;
	}
	public void setBatchId(Long batchId) {
		this.batchId = batchId;
	}
	@Column(name="pcode")
	public String getPcode() {
		return pcode;
	}
	public void setPcode(String pcode) {
		this.pcode = pcode;
	}
	@Column(name="member_code")
	public String getMemberCode() {
		return memberCode;
	}
	public void setMemberCode(String memberCode) {
		this.memberCode = memberCode;
	}
	@Column(name="member_name")
	public String getMemberName() {
		return memberName;
	}
	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}
	@Column(name="mobile")
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	@Column(name="car_plate")
	public String getCarPlate() {
		return carPlate;
	}
	public void setCarPlate(String carPlate) {
		this.carPlate = carPlate;
	}
	@Column(name="store_code")
	public String getStoreCode() {
		return storeCode;
	}
	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}
	@Column(name="mars_customer_code")
	public String getMarsCustomerCode() {
		return marsCustomerCode;
	}
	public void setMarsCustomerCode(String marsCustomerCode) {
		this.marsCustomerCode = marsCustomerCode;
	}
	@Column(name="mars_vehicle_code")
	public String getMarsVehicleCode() {
		return marsVehicleCode;
	}
	public void setMarsVehicleCode(String marsVehicleCode) {
		this.marsVehicleCode = marsVehicleCode;
	}
	@Column(name="mars_customer_name")
	public String getMarsCustomerName() {
		return marsCustomerName;
	}
	public void setMarsCustomerName(String marsCustomerName) {
		this.marsCustomerName = marsCustomerName;
	}
	@Column(name="mars_phone_number")
	public String getMarsPhoneNumber() {
		return marsPhoneNumber;
	}
	public void setMarsPhoneNumber(String marsPhoneNumber) {
		this.marsPhoneNumber = marsPhoneNumber;
	}
	@Column(name="status")
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Column(name="error_message")
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

}
